package com.artpri.dao.impl;

import com.artpri.dao.ShopkeeperDao;
import com.artpri.model.ShopkeeperInfo;

/**
 * 
 * @author ZhangSi
 *
 */
public class ShopkeeperDaoImpl extends HibernateDaoImpl<ShopkeeperInfo> implements ShopkeeperDao{

	@Override
	public ShopkeeperInfo getkeeperByUserNum(Integer userNum) {
		return (ShopkeeperInfo) getQuery("from ShopkeeperInfo s where s.userNum=?0", userNum).uniqueResult();
	}

}
